licenses(["notice"])

java_test(
    name = "CreatePublicKeysetCommandTest",
    size = "small",
    srcs = ["CreatePublicKeysetCommandTest.java"],
    deps = [
        "//tinkey/src/main/java/com/google/crypto/tink/tinkey",
        "//tinkey/src/main/java/com/google/crypto/tink/tinkey:kms_clients_factory",
        "//tinkey/src/main/java/com/google/crypto/tink/tinkey:tinkey_test_kms_client",
        "//tinkey/src/main/java/com/google/crypto/tink/tinkey:tinkey_util",
        "@maven//:com_google_truth_truth",
        "@maven//:junit_junit",
        "@tink_java//src/main/java/com/google/crypto/tink:aead",
        "@tink_java//src/main/java/com/google/crypto/tink:cleartext_keyset_handle",
        "@tink_java//src/main/java/com/google/crypto/tink:insecure_secret_key_access",
        "@tink_java//src/main/java/com/google/crypto/tink:key",
        "@tink_java//src/main/java/com/google/crypto/tink:private_key",
        "@tink_java//src/main/java/com/google/crypto/tink:registry_cluster",
        "@tink_java//src/main/java/com/google/crypto/tink:tink_json_proto_keyset_format",
        "@tink_java//src/main/java/com/google/crypto/tink:tink_proto_keyset_format",
        "@tink_java//src/main/java/com/google/crypto/tink/aead:aead_config",
        "@tink_java//src/main/java/com/google/crypto/tink/aead:predefined_aead_parameters",
        "@tink_java//src/main/java/com/google/crypto/tink/hybrid:hybrid_config",
        "@tink_java//src/main/java/com/google/crypto/tink/mac:mac_config",
        "@tink_java//src/main/java/com/google/crypto/tink/signature:ed25519_parameters",
        "@tink_java//src/main/java/com/google/crypto/tink/signature:signature_config",
    ],
)

java_test(
    name = "CreateKeysetCommandTest",
    size = "small",
    srcs = ["CreateKeysetCommandTest.java"],
    deps = [
        "//tinkey/src/main/java/com/google/crypto/tink/tinkey",
        "//tinkey/src/main/java/com/google/crypto/tink/tinkey:kms_clients_factory",
        "//tinkey/src/main/java/com/google/crypto/tink/tinkey:tinkey_test_kms_client",
        "@maven//:com_google_truth_truth",
        "@maven//:junit_junit",
        "@tink_java//src/main/java/com/google/crypto/tink:aead",
        "@tink_java//src/main/java/com/google/crypto/tink:insecure_secret_key_access",
        "@tink_java//src/main/java/com/google/crypto/tink:registry_cluster",
        "@tink_java//src/main/java/com/google/crypto/tink:tink_json_proto_keyset_format",
        "@tink_java//src/main/java/com/google/crypto/tink:tink_proto_keyset_format",
        "@tink_java//src/main/java/com/google/crypto/tink/aead:aead_config",
        "@tink_java//src/main/java/com/google/crypto/tink/aead:predefined_aead_parameters",
        "@tink_java//src/main/java/com/google/crypto/tink/mac:mac_config",
        "@tink_java//src/main/java/com/google/crypto/tink/mac:predefined_mac_parameters",
    ],
)

java_test(
    name = "AddKeyCommandTest",
    size = "small",
    srcs = ["AddKeyCommandTest.java"],
    deps = [
        "//tinkey/src/main/java/com/google/crypto/tink/tinkey",
        "//tinkey/src/main/java/com/google/crypto/tink/tinkey:kms_clients_factory",
        "//tinkey/src/main/java/com/google/crypto/tink/tinkey:tinkey_test_kms_client",
        "@maven//:com_google_truth_truth",
        "@maven//:junit_junit",
        "@tink_java//src/main/java/com/google/crypto/tink:aead",
        "@tink_java//src/main/java/com/google/crypto/tink:insecure_secret_key_access",
        "@tink_java//src/main/java/com/google/crypto/tink:registry_cluster",
        "@tink_java//src/main/java/com/google/crypto/tink:tink_json_proto_keyset_format",
        "@tink_java//src/main/java/com/google/crypto/tink:tink_proto_keyset_format",
        "@tink_java//src/main/java/com/google/crypto/tink/aead:aead_config",
        "@tink_java//src/main/java/com/google/crypto/tink/aead:predefined_aead_parameters",
        "@tink_java//src/main/java/com/google/crypto/tink/mac:mac_config",
        "@tink_java//src/main/java/com/google/crypto/tink/mac:predefined_mac_parameters",
    ],
)

java_test(
    name = "RotateKeysetCommandTest",
    size = "small",
    srcs = ["RotateKeysetCommandTest.java"],
    deps = [
        "//tinkey/src/main/java/com/google/crypto/tink/tinkey",
        "//tinkey/src/main/java/com/google/crypto/tink/tinkey:kms_clients_factory",
        "//tinkey/src/main/java/com/google/crypto/tink/tinkey:tinkey_test_kms_client",
        "@maven//:com_google_truth_truth",
        "@maven//:junit_junit",
        "@tink_java//src/main/java/com/google/crypto/tink:aead",
        "@tink_java//src/main/java/com/google/crypto/tink:insecure_secret_key_access",
        "@tink_java//src/main/java/com/google/crypto/tink:registry_cluster",
        "@tink_java//src/main/java/com/google/crypto/tink:tink_json_proto_keyset_format",
        "@tink_java//src/main/java/com/google/crypto/tink:tink_proto_keyset_format",
        "@tink_java//src/main/java/com/google/crypto/tink/aead:aead_config",
        "@tink_java//src/main/java/com/google/crypto/tink/aead:predefined_aead_parameters",
        "@tink_java//src/main/java/com/google/crypto/tink/mac:mac_config",
        "@tink_java//src/main/java/com/google/crypto/tink/mac:predefined_mac_parameters",
    ],
)

java_test(
    name = "ConvertKeysetCommandTest",
    size = "small",
    srcs = ["ConvertKeysetCommandTest.java"],
    deps = [
        "@maven//:com_google_truth_truth",
        "@maven//:junit_junit",
        "@tink_java//src/main/java/com/google/crypto/tink:aead",
        "@tink_java//src/main/java/com/google/crypto/tink:insecure_secret_key_access",
        "@tink_java//src/main/java/com/google/crypto/tink:registry_cluster",
        "@tink_java//src/main/java/com/google/crypto/tink:tink_json_proto_keyset_format",
        "@tink_java//src/main/java/com/google/crypto/tink:tink_proto_keyset_format",
        "@tink_java//src/main/java/com/google/crypto/tink/aead:aead_config",
        "@tink_java//src/main/java/com/google/crypto/tink/aead:predefined_aead_parameters",
        "@tink_java//src/main/java/com/google/crypto/tink/mac:mac_config",
        "@tink_java//src/main/java/com/google/crypto/tink/mac:predefined_mac_parameters",
        "//tinkey/src/main/java/com/google/crypto/tink/tinkey",
        "//tinkey/src/main/java/com/google/crypto/tink/tinkey:kms_clients_factory",
        "//tinkey/src/main/java/com/google/crypto/tink/tinkey:tinkey_test_kms_client",
    ],
)


java_test(
    name = "TinkeyTestKmsClientTest",
    size = "small",
    srcs = ["TinkeyTestKmsClientTest.java"],
    deps = [
        "//tinkey/src/main/java/com/google/crypto/tink/tinkey:kms_clients_factory",
        "//tinkey/src/main/java/com/google/crypto/tink/tinkey:tinkey_test_kms_client",
        "@maven//:com_google_truth_truth",
        "@maven//:junit_junit",
        "@tink_java//src/main/java/com/google/crypto/tink:aead",
        "@tink_java//src/main/java/com/google/crypto/tink:kms_client",
        "@tink_java//src/main/java/com/google/crypto/tink:registry_cluster",
        "@tink_java//src/main/java/com/google/crypto/tink/aead:aead_config",
        "@tink_java//src/main/java/com/google/crypto/tink/aead:predefined_aead_parameters",
    ],
)

java_test(
    name = "KmsClientsFactoryTest",
    size = "small",
    srcs = ["KmsClientsFactoryTest.java"],
    deps = [
        "//tinkey/src/main/java/com/google/crypto/tink/tinkey:kms_clients_factory",
        "//tinkey/src/main/java/com/google/crypto/tink/tinkey:tinkey_test_kms_client",
        "@maven//:com_google_truth_truth",
        "@maven//:junit_junit",
    ],
)
